package com.feng.seata.web;

import com.alibaba.nacos.api.model.v2.Result;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class GlobalExceptionHandler {
    @ExceptionHandler({Throwable.class})
    public Result<?> throwable() {
        return Result.failure("请求失败");
    }
}